var express = require('express');
var router = express.Router();
var passport=require('passport')
var productControllers = require('../controllers/productControllers')


//商品详情
router.get('/productDetail/:productId', function (req, res, next) {
    productControllers.getProductDetail(req,res)
});
router.get('/getProductTheme/:ThemeId',function(req,res,next){
    productControllers.getProductTheme(req,res)
});
//节日分类
router.get('/getProductFestival',function(req,res,next){
    productControllers.getProductFestival(req,res)
});
//品种分类
router.get('/getProductPinzhong',function(req,res,next){
    productControllers.getProductPinzhong(req,res)
});
//用途分类
router.get('/getProductYongtu',function(req,res,next){
    productControllers.getProductYongtu(req,res)
});
//蛋糕材料分类
router.get('/getProductCailiao',function(req,res,next){
    productControllers.getProductCailiao(req,res)
});
//从高到低排序
router.get('/getProductGao/:productTypeId',function(req,res,next){
    productControllers.getProductGao(req,res)
});
//从低到高排序
router.get('/getProductDi/:productTypeId',function(req,res,next){
    productControllers.getProductDi(req,res)
});
//获取商品列表
router.get('/:typeId', function (req, res, next) {
    productControllers.getProductList(req,res)
});

module.exports=router